package com.lanhao.aot.carrierintegration;

import java.io.File;
import java.io.IOException;
import java.util.List;

import org.apache.commons.io.FileUtils;

import cn.hutool.http.HttpUtil;

public class B {
	public static void main(String[] args) throws IOException {
		List<String> readLines = FileUtils.readLines(new File("D:/流量包/流量包数据.txt"), "UTF-8");
		for (String url : readLines) {
			String fileName = url.substring(url.lastIndexOf("flow/") + 5);
			System.out.println(fileName);
			HttpUtil.downloadFile(url, new File("D:/流量包/" + fileName));
		}
	}
}
